package com.xcc.myrouter;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * ****************************************************
 * 作者 :: rookieCi<1056907550@qq.com>
 * ----------------------------------------------------
 * git :: https://gitee.com/rookieci
 * ----------------------------------------------------
 * 博客 :: http://blog.csdn.net/xcccicishuai
 * ----------------------------------------------------
 * 时间 :: 2019/5/28 Add by rookieCi
 * ----------------------------------------------------
 * 描述 :: MyMode
 * ****************************************************
 */
public class MyMode implements Parcelable {
    long id;
    String name;

    public String toString() {
        return id + name;
    }

    public MyMode() {
    }

    protected MyMode(Parcel in) {
        id = in.readLong();
        name = in.readString();
    }

    public static final Creator<MyMode> CREATOR = new Creator<MyMode>() {
        public MyMode createFromParcel(Parcel in) {
            return new MyMode(in);
        }

        public MyMode[] newArray(int size) {
            return new MyMode[size];
        }
    };

    public int describeContents() {
        return 0;
    }

    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(id);
        dest.writeString(name);
    }
}
